package com.ms.service.module.datacenterlite;

import com.xpec.c4.service.module.task.TaskAsyncCommand;

public class CentralDataAsync extends TaskAsyncCommand {

	CentralAsyncCommand command;
	
	@Override
	public void asyncExecute() throws Exception {
		if(command != null){
			command.setCurrentModuleServerId(this.getCurrentModuleServer().getModuleName());
			command.asyncExecute();
		}
	}

	@Override
	public void execute() throws Exception {
		TransactionProcessor.callbackCenter(command, command.moduleID);
	}

	public CentralAsyncCommand getCommand() {
		return command;
	}

	public void setCommand(CentralAsyncCommand command) {
		this.command = command;
	}
}
